package com.hlkj.baojin.dao;

import com.hlkj.baojin.entity.Duty;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author HULIN
 * @created with: baojin
 * @package com.hlkj.baojin.dao
 * @description:
 * @date 2019/1/29 13:28
 * @modified By:
 * @Copyright © 2018 HAILIANG Info. Tech Ltd. All rights reserved.
 */
public interface IDutyDao extends MongoRepository<Duty, String> {

    Duty findByMobilePhoneAndDelete(String mobile, Integer delete);

    Duty findByIdAndDelete(String id, Integer delete);

    List<Duty> findByNameLikeAndDelete(String name, Integer delete);

    List<Duty> findByDutyStatusAndDelete(Integer dutyStatus, Integer delete);
}
